import './App.scss';

import React, { Suspense } from 'react';
import { useRoutes } from "react-router-dom"
import routerConfig from './router/routerConfig';


const App = () => {
  return (
    <div className='app'>
      <Suspense fallback={<div className='loading'>loading......</div>}>
        {
          useRoutes(routerConfig)
        }
      </Suspense>
    </div>
  );
};

export default App;